<?php
class homepageActions extends myFrontendAction{
  
  public function executeArticlePrint(sfWebRequest $request)
  {
    $this->setLayout(false);
    
    if($request->hasParameter('id')) {
      $structure = Doctrine::getTable('Structure')->find($request->getParameter('id'));
      
      if($structure->count()) {
        $this->title    = $structure->getPagetitle();
        $this->contents = $structure->getContent();
        $this->picture  = $structure->getPicture();
      }
    }
  }
	
	public function executeIndex(sfWebRequest $request)
  {
  }
};